package com.bigfish.gbs.dao;

import com.bigfish.gbs.entity.Resource;
import com.bigfish.gbs.shiro.rule.RolePermRule;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface ResourceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);

    List<RolePermRule> selectRoleRules()  throws DataAccessException;

    List<Resource> selectApiList() throws DataAccessException;

    List<Resource> selectApisByRoleId(Integer Id) throws DataAccessException;

    List<Resource> selectNotAuthorityApisByRoleId(Integer roleId) throws DataAccessException;
}